﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using IDAL;

namespace BLL
{
    public class usersBLL
    {
        private IusersDAL usersDAL = DALFactory.DateAccess.GetusersDAL();
        public users GetUsersById(int id)
        {
            return usersDAL.GetUsersById(id);
        }
        public users LoginValid(users user)
        {
            return usersDAL.LoginValid(user);
        }
        public IEnumerable<users> GetAllUser(){
            return usersDAL.GetAllUser();
        }
        public void ModifyState(int id)
        {
            usersDAL.ModifyState(id);
        }
        public void UpdateUserName(int uid, string un)
        {
            usersDAL.UpdateUserName(uid, un);
        }
        public void UpdateNickName(int uid, string un)
        {
            usersDAL.UpdateNickName(uid, un);
        }
        public void UpdatePWD(int uid, string pwd)
        {
            usersDAL.UpdatePWD(uid, pwd);
        }
        public void UpdateBirth(int uid, DateTime bt)
        {
            usersDAL.UpdateBirth(uid, bt);
        }
        public void UpdateDec(int uid, string bt)
        {
            usersDAL.UpdateDec(uid, bt);
        }
    }
}
